import React, {Component} from 'react';
import {
    View,
    Text,
    TouchableWithoutFeedback
} from 'react-native';
import styles from './style'
 class Test1 extends Component{
     render(){
         const {name, num, onViewClick} = this.props
         return (
             <TouchableWithoutFeedback onPress={onViewClick}>
                <View style={styles.box}>
                    <Text style={styles.text}>{name},{num}</Text>
                </View> 
             </TouchableWithoutFeedback>
         )
     }
 }
 export default Test1;
